<?php
$this->pageTitle=Yii::app()->name . ' - About';
$this->breadcrumbs=array(
	'关于',
);
?>
<h1>关于</h1>

<p>This is a "static" page. You may change the content of this page
by updating the file <tt><?php echo __FILE__; ?></tt>.</p>

<?php 
echo Yii::app()->request->baseUrl.'/MB.TXT' .'<BR/>';

$fc1 =Fcode::model()->findByPk('松') ;

if($fc1 != null){
	echo strlen($fc1->letter). '+' . $fc1->letter .'<br/>';
	echo strlen($fc1->fcode). '+' . $fc1->fcode .'<br/>';
}

// $file_handle = fopen('MB.TXT', "r");
// while (!feof($file_handle)) {
// 	$model = new Fcode();
// 	$line = fgets($file_handle);
// 	echo strlen($line);
// 	$model ->letter =  substr($line,0,3);
// 	$model ->fcode= substr($line,3);
// // 	echo '<br/>';
// 	echo strlen($model->letter) . $model->letter.'+' . strlen($model->fcode) ."<br/>";

// 	if($model->save()) echo "保存成功!";
// }
// fclose($file_handle);




?>
